package com.bootx.entity;

import com.fasterxml.jackson.annotation.JsonView;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.validation.constraints.NotNull;

@Entity
public class BetConfig extends BaseEntity<Long>{

    @NotNull
    @Column(name = "orders",unique = true,nullable = false)
    @JsonView({PageView.class,ListView.class})
    private Integer order;

    /**
     * 如果赢了之后，下把押注情况。1：相同，-1：相反，0：暂停
     */
    private Integer winType;

    /**
     * 如果输了之后，下把押注情况。1：相同，-1：相反，0：暂停
     */
    private Integer failType;

    public Integer getWinType() {
        return winType;
    }

    public void setWinType(Integer winType) {
        this.winType = winType;
    }

    public Integer getFailType() {
        return failType;
    }

    public void setFailType(Integer failType) {
        this.failType = failType;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }
}
